package com.gwcloud.coffeeman.common.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: LogWriter
 * @date: 2020/9/10
 * @author: ganwei
 * @Desc: 程序描述
 */
public class LogWriter {
    /**
     *- 日志级别 debug
     */
    public static void debug(Class<?> clazz,String format,Object... arg) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.debug(format, arg);
    }
    /**
     * 日志级别 trace
     */
    public static void trace(Class<?> clazz,String format,Object... arg) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.trace(format, arg);
    }
    /**
     * 日志级别 info
     */
    public static void runtime(Class<?> clazz,String format,Object... arg) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.info(format, arg);
    }
    /**
     * 日志级别 warn
     */
    public static void warn(Class<?> clazz,String format,Object... arg) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.warn(format, arg);
    }
    /**
     * 日志级别 error
     */
    public static void error(Class<?> clazz,String format,Object... arg) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.error(format, arg);
    }

}
